/* eslint-disable import/no-anonymous-default-export */
import { balanceLog } from "../services/payApi";

export default {
    state: {
        data: []
    },
    effects: {
        async balanceLog(params) {

            const response = await balanceLog(params)

            if (response.code === 200) {
                this.savePay({
                    data: response.data
                })
            }
        }


    },
    reducers: {
        savePay(state, payload) {
            return {
                ...state,
                ...payload
            }
        }
    }
}